/*
 * @LastEditors: 七七
 * @Date: 2023-01-08 11:44:42
 * 
 * 该文件专门用于暴露一个store对象，整个应用只有一个store对象
 */

import { createStore, applyMiddleware } from 'redux'
import { composeWithDevTools } from 'redux-devtools-extension'
import reducer from './reducers/index.js'
import thunk from 'redux-thunk'

//暴露代码
export default createStore(reducer, composeWithDevTools(applyMiddleware(thunk)));